package qldc.pm.tienan.constants;

public enum TrangThaiTienAnTrongThongKeEnum {
	TAT_CA("tat-ca",-1),
	DANG_THI_HANH_AN("dang-thi-hanh-an",1),
	DA_XOA_AN_TICH("da-xoa-an-tich",3);
	
	private int value;
	private String key;
	
	private TrangThaiTienAnTrongThongKeEnum(String key, int value){
		this.value = value;
		this.key = key;
	}
	
	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public static String getKey(int value){
		switch (value) {
		case 0:
			return DANG_THI_HANH_AN.key;
		case 2:
			return DA_XOA_AN_TICH.key;
		default:
			return TAT_CA.key;
		}
	}

}
